﻿//<TunynetCopyright>
//--------------------------------------------------------------
//<copyright>青岛拓宇网络科技有限公司 2005-2008</copyright>
//<version>V0.5</verion>
//<createdate>2008-2-21</createdate>
//<author>mazq</author>
//<email>mazq@tunynet.com</email>
//<log date="2008-2-21">创建</log>
//--------------------------------------------------------------
//</TunynetCopyright>

using System;
using System.Collections.Generic;
using System.Text;

namespace ChinaCustoms.Qingdao.Workflow.Supports
{
    /// <summary>
    /// 工作流实例实体类
    /// </summary>
    [Serializable]
    public sealed class WorkflowInstanceInfo
    {
        private Guid workflowGuid = Guid.Empty;
        /// <summary>
        /// WorkflowInstanceID
        /// </summary>
        public Guid WorkflowGuid
        {
            get
            {
                if (workflowGuid == Guid.Empty)
                    workflowGuid = Guid.NewGuid();

                return workflowGuid;
            }
            set { this.workflowGuid = value; }
        }


        private WorkflowStatus status = WorkflowStatus.Executing;
        /// <summary>
        /// 工作流实例状态
        /// </summary>
        public WorkflowStatus Status
        {
            get { return this.status; }
            set { this.status = value; }
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }

    }
}
